from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from options import options
from time import sleep
driver=webdriver.Chrome(options=options)
driver.get(r'https://www.baidu.com/')
sleep(1)
driver.find_element(By.ID,'kw').send_keys('hello')
ele=driver.find_element(By.ID,'kw')
ActionChains(driver).double_click(ele).perform()
sleep(1)
ele=driver.find_element(By.ID,'kw')
ActionChains(driver).click(ele).perform()
sleep(1)
ele=driver.find_element(By.ID,'kw')
ActionChains(driver).context_click(ele).perform()
sleep(1)
driver.refresh()
ele=driver.find_element(By.XPATH,'//*[@id="s-top-left"]/div/a')
ActionChains(driver).move_to_element(ele).perform()
sleep(1)
